package com.method.java;

public class AnimalTest {
	public static void main(String[] args) {
		Animal a = new Animal();
	a.eat();
	
	Cat c = new Cat();
	
	c.setName("加肥");
	c.setAge(18);
	System.out.println(c.getName()+c.getAge());
	c.eat();
	Dog d = new Dog();
	c.setName("阳仔");
	c.setAge(10);
	System.out.println(c.getName()+c.getAge());

	d.eat();
	}
	
}
